package com.infocollect.project.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.infocollect.project.api.entity.TappApiConfigEntity;
import com.infocollect.project.api.req.SelectApiParamReq;
import com.infocollect.project.api.vo.ApiConfigVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TappApiConfigMapper extends BaseMapper<TappApiConfigEntity> {

    /**
     * 根据ApiCode 获取Api查询信息
     * @param apicode
     * @return
     */
    TappApiConfigEntity queryByApiCode(@Param("apicode") String apicode, @Param("apitype") int apitype);

    /**
     * 选择APi列表
     * @return
     */
    List<TappApiConfigEntity> SelectApiList(SelectApiParamReq param);


    TappApiConfigEntity queryByID(Long fid);

    /**
     *根据方法code 获取Api接口
     * @return
     */
    ApiConfigVO  getApiConfigByCallMethodCode(@Param("methodCode") String methodCode,@Param("fid") Long fid);

}
